import { defineConfig } from 'vitest/config';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';

export default defineConfig({
    plugins: [vue()],
    test: {
        environment: 'jsdom',
        globals: true,
        include: ['packages/**/*.test.ts'],
        coverage: {
            provider: 'v8',
            reporter: ['text', 'json', 'html'],
            include: ['packages/**/*.ts'],
            exclude: ['packages/**/*.test.ts', 'packages/**/*.d.ts']
        }
    },
    resolve: {
        alias: {
            '@vue-business-hooks': resolve(__dirname, './packages'),
            '@vue-business-hooks/common': resolve(__dirname, './packages/common'),
        }
    }
}); 